package com.guragura.util;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Sound;

public class GuraSound {
	private Sound akifail;
	private Sound akikena;
	private Sound akitolong;
	private Sound cling;
	private Sound hitspecial;
	private Sound ibufail;
	private Sound ibukena;
	private Sound ibutolong;
	private Sound ototfail;
	private Sound ototkena;
	private Sound otottolong;
	private Sound pencurifail;
	private Sound pencurikena;
	private Sound pencuritolong;
	private Sound tereakjatoh;
	
	private Boolean mute;	

	public GuraSound(AssetManager assetManager) {
		mute = false;
		
		akifail = assetManager.get("sfx/akifail.mp3", Sound.class);
		akikena = assetManager.get("sfx/akikena.mp3", Sound.class);
		akitolong = assetManager.get("sfx/akitolong.mp3", Sound.class);
		cling = assetManager.get("sfx/cling.mp3", Sound.class);
		hitspecial = assetManager.get("sfx/hitspecial.mp3", Sound.class);
		ibufail = assetManager.get("sfx/ibufail.mp3", Sound.class);
		ibukena = assetManager.get("sfx/ibukena.mp3", Sound.class);
		ibutolong = assetManager.get("sfx/ibutolong.mp3", Sound.class);
		ototfail = assetManager.get("sfx/ototfail.mp3", Sound.class);
		ototkena = assetManager.get("sfx/ototkena.mp3", Sound.class);
		otottolong = assetManager.get("sfx/otottolong.mp3", Sound.class);
		pencurifail = assetManager.get("sfx/pencurifail.mp3", Sound.class);
		pencurikena = assetManager.get("sfx/pencurikena.mp3", Sound.class);
		pencuritolong = assetManager.get("sfx/pencuritolong.mp3", Sound.class);
		tereakjatoh = assetManager.get("sfx/tereakjatoh.mp3", Sound.class);
	}
	
	public void setMute(Boolean b){
		mute = b;
		
	}


	public void playAkifail() {
		if(GuraSettings.sound) akifail.play();
	}


	public void playAkikena() {
		if(GuraSettings.sound) akikena.play();
	}


	public void playAkitolong() {
		if(GuraSettings.sound) akitolong.play();
	}


	public void playCling() {
		if(GuraSettings.sound) cling.play();
	}


	public void playHitspecial() {
		if(GuraSettings.sound) hitspecial.play();
	}


	public void playIbufail() {
		if(GuraSettings.sound) ibufail.play();
	}


	public void playIbukena() {
		if(GuraSettings.sound) ibukena.play();
	}


	public void playIbutolong() {
		if(GuraSettings.sound) ibutolong.play();
	}


	public void playOtotfail() {
		if(GuraSettings.sound) ototfail.play();
	}


	public void playOtotkena() {
		if(GuraSettings.sound) ototkena.play();
	}


	public void playOtottolong() {
		if(GuraSettings.sound) otottolong.play();
	}


	public void playPencurifail() {
		if(GuraSettings.sound) pencurifail.play();
	}


	public void playPencurikena() {
		if(GuraSettings.sound) pencurikena.play();
	}


	public void playPencuritolong() {
		if(GuraSettings.sound) pencuritolong.play();
	}


	public void playTereakjatoh() {
		if(GuraSettings.sound) tereakjatoh.play();
	}
	
	
}
